import Layout from "@/layout";

import student from './modules/student'
import order from './modules/order'
import admin from './modules/admin'
import chart from './modules/chart'


export const constantRoutes = [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
    hidden: true
  },
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true
  },
  {
    path: "/test",
    component: () => import("@/views/test"),
    hidden: true
  },
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        name: "Dashboard",
        component: () => import("@/views/dashboard/index"),
        meta: { title: "控制台", icon: "dashboard" }
      }
    ]
  },
  student,
  order,
  chart,
  admin,
  
  // 404
  { path: "*", redirect: "/404", hidden: true }
];

export default constantRoutes;
